const mongoose = require('mongoose')
const ocrSchema = mongoose.Schema({
	userId: mongoose.Types.ObjectId, //用户ID，自增长
	text: Object, // ocr识别文字存储字段
	createTime: {
		type: Date,
		default: Date.now()
	}, //创建时间
	lastLoginTime: {
		type: Date,
		default: Date.now()
	} //更新时间
})

const Ocr = mongoose.model('ocrs', ocrSchema)
// console.log("User:", new User());
module.exports = Ocr
// module.exports = mongoose.model("users",userSchema,"users")
